<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>深度保洁</title>
	</head>
	<style>
	body,p{
		margin:0px;
		padding:0px;
	}
	ul{
		list-style: none;
		padding:0px;
		margin:0px;
	}
	.serContent{
		margin-top:0px;
		padding-top:0px;
	}
	.serContent ul:nth-child(1){
		border:1px solid #E8E8E8;
		text-align: center;
	}
	.serContent ul:nth-child(1) li:nth-child(1){
		color:#606060;
		text-align: left; 
		background-color: #E8E8E8;
		padding-left:2%; 
		height:100px; 
		line-height: 100px;
		margin-bottom: 15px; 
		font-size: 44px; 
		border:1px solid #DEDEDE;
	}
	.serContent ul:nth-child(1) li:nth-child(2){
		text-align: center;
	}
	.serContent ul:nth-child(1) li:nth-child(3){
		font-size:40px;
		margin-top:35px;
		margin-bottom: 10px; 
		color:#A1A1A1; 
		text-align:left;
    	margin-left:25px;
	}
	.serItemRow{
		margin-bottom: 5px;
	}
	.serItemCell{
		display:inline-block; 
		margin-right: 5px;
		border:1px solid #DDDDDD;
		text-align: center;
		vertical-align: middle;
		border-radius: 12px;
		width:30%;
		font-size:41px;
		height: 250px;
		text-align: center;
		align-content: center;
	}
	.serItemCell.active{
		background-color:#FC605E;
		color:white;
	}
	.serItemCell.active span:nth-child(2){
		color:white;
	}
	.serItemCell span{
		display: block;
	}
	.serItemCell span:nth-child(1){
		display: block;
		margin-top:80px;
	}
	.serItemCell span:nth-child(2){
		color:red;
	}
	.serContent ul:nth-child(2){
		padding-left:0px;
		height: 35%;
		background-color:#EFEFEF;
		padding-top: 3px; 
		border-top: 1px solid #E3E3E3;
	}
	.serScope,.serStandard{
		border-bottom: 1px solid #E3E3E3;
	}
	.serStandard>div,.serScope>div{
	    background-color: #E4E4E4;
	    padding-top: 3%;
	    padding-bottom: 3%;
	    padding-left: 2%;
	    font-size: 44px;
	    color: #616161;
	    margin-top: 3%;
	    border: 1px solid #E3E3E3;
	}
	.serStandard>p,.serScope>p{
		background-color: white; 
		color:#ADADAD;
		padding-left:3%;
		padding-right: 3%; 
		padding-top: 3%;
		padding-bottom: 3%;
		font-size: 38px; 
	}
	</style>
	<body >
	<!--图片-->
	<div style="height:500px;margin-bottom: 15px; "><img style="width:100%;height: 100%;" src="../../static/img/sertop.png"></div>
	<div class="serContent">
		<!--服务条目-->
		<ul>
			<li>服务项目</li>
			<li>
				<!--第一行-->
				<div class="serItemRow">    
					<div class="serItemCell active"  onclick="choiceItem(this);">
						<span>一居室</span>
						<span data-val="400">￥400</span>
					</div>
					<div class="serItemCell" onclick="choiceItem(this);">
						<span>一居室(一卫)</span>
						<span data-val="600">￥600</span>
					</div>
					<div class="serItemCell" onclick="choiceItem(this);" >
						<span>一居室(二卫)</span>
						<span data-val="680">￥680</span>
					</div>
				</div>
				<!--第二行-->
				<div class="serItemRow">
					<div class="serItemCell" onclick="choiceItem(this);">
						<span>三居室(1卫)</span>
						<span data-val="750">￥750</span>
					</div>
					<div class="serItemCell" onclick="choiceItem(this);">
						<span>三居室(2卫)</span>
						<span data-val="830">￥830</span>
					</div>
					<div class="serItemCell" onclick="choiceItem(this);">
						<span>四居室(3卫)</span>
						<span data-val="950">￥950</span>
					</div>
				</div>
				<!--第三行-->
				<div class="serItemRow" >
					<div class="serItemCell" onclick="choiceItem(this);">
						<span>单独卫生间</span>
						<span data-val="130">￥130</span>
					</div>
					<div class="serItemCell" onclick="choiceItem(this);">
						<span>单独厨房</span>
						<span data-val="210">￥210</span>
					</div>
					<div class="serItemCell" style="visibility:hidden">
						<span>四居室以上</span>
						<span data-val="400">6元/平米</span>
					</div>
				</div>
			</li>
			<li>注：四居室以上最终收费按实际面积计算</li>
		</ul>
		<!--服务文字说明-->
		<ul>
			<!--服务范围-->
			<li class="serScope">
				<div>服务范围</div>
				<p>
					客厅和卧室地面、天花板、灯具无尘、窗帘吸尘；
					厨房天花板、墙面、油烟机、灶台无油污，
					橱柜内部清洁，高温消毒；
					卫生间天花板、墙面、面盆、浴缸、龙头花洒、马桶无水垢，高温消毒。
				</p>
			</li>
			<!--服务标准-->
			<li class="serStandard">
				<div>服务标准</div>
				<p>
					地面、墙面、天花板清洁无胶渍，窗帘无尘如新；
					灯具、油烟机、灶台无尘无油渍，橱柜内部清洁无污渍；
					浴室柜、龙头花洒、马桶等无水垢。室内物品整齐归位，离开时带走垃圾
				</p>
			</li>
		</ul>
	</div>
	</body>
	<script>
	var service={};
	getCheckedObj();
	/*var service={
		itemOne:{
			title:'一居室',
			price:'400',
			count:1 
		},
		itemTwo:{
			title:'一居室(一卫)',
			price:'400',
			count:1 
		},
		itemThree:{
			title:'一居室',
			price:'400',
			count:1 
		},
		itemFour:{
			title:'一居室',
			price:'400',
			count:1 
		},
		itemFive:{
			title:'一居室',
			price:'400',
			count:1 
		},
		itemSix:{
			title:'一居室',
			price:'400',
			count:1 
		},
		
		itemSeven:{
			title:'一居室',
			price:'400',
			count:1 
		},
		itemEight:{
			title:'一居室',
			price:'400',
			count:1 
		},
		itemNine:{
			title:'一居室',
			price:'400',
			count:1 
		}
		
	};*/
	function choiceItem(obj){
		var choicedList = document.getElementsByClassName("active");
		//防止页面有多个active出错
		for(var i =0;i<choicedList.length;i++){
			var choiced = choicedList[i];
			choiced.className="serItemCell";
		}
		obj.className="serItemCell active";
		getCheckedObj(obj);
	}
	function getItem(){
		return JSON.stringify(service);
	}
	function getCheckedObj(item){
		var obj;
		if(item){
			 obj = item;
		}else{
			obj = document.getElementsByClassName("active")[0];
		}
		var title = obj.children[0].innerHTML;
		var price = obj.children[1].getAttribute("data-val");
		service ={};
		service.TITLE=title;
		service.SELLPRICE = price;
		service.COUNT = 1;
	}
	</script>
</html>
